<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Five Minute Mystery</title>
  </head>
  <body>
  </body>
  <script>
var balance = 10500;
var cameraOn = true;

function steal(balance, amount) {
    cameraOn = false;
    if (amount < balance) {
        balance = balance - amount;
    }
    return amount;
    cameraOn = true;
}

var amount = steal(balance, 1250);
alert("Criminal: you stole " + amount + "!");
  </script>
</body>
</html>
